#define _CRT_SECURE_NO_WARNINGS 1;
#include<stdio.h>

//typedef struct A
//{
//	int _a : 2;
//	int _b : 5;
//	int _c : 10;
//	int _d : 30;
//}a;

//int main()
//{
//	printf("%d", sizeof(long));
//	return 0;
//}

//#define A 2
//#define B 3
//#define MAX_SIZE A+B
//struct _Record_Struct
//{
//	unsigned char Env_Alarm_ID : 4;
//	unsigned char Para1 : 2;
//	unsigned char state;
//	unsigned char avail : 1;
//}*Env_Alarm_Record;
//
//int main()
//{
//	struct _Record_Struct* pointer = (struct _Record_Struct*)malloc(sizeof(struct _Record_Struct) * MAX_SIZE);
//	printf("%d ", sizeof(struct _Record_Struct) * MAX_SIZE);
//	return 0;
//}


//int main()
//{
//	unsigned char puc[4];
//	struct tagPIM
//	{
//		unsigned char ucPim1;
//		unsigned char ucData0 : 1;
//		unsigned char ucData1 : 2;
//		unsigned char ucData2 : 3;
//	}*pstPimData;
//
//	pstPimData = (struct tagPIM*)puc;
//	memset(puc, 0, 4);
//	pstPimData->ucPim1 = 2;  //0010
//	pstPimData->ucData0 = 3; //1
//	pstPimData->ucData1 = 4; //00
//	pstPimData->ucData2 = 5; //101
//	printf("%02x %02x %02x %02x\n", puc[0], puc[1], puc[2], puc[3]);
//	return 0;
//}

int main()
{
	int ret = 3;
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	for (int i = 3; i < 10; i++)
	{
		arr[i] = arr[i + 1];
	}
	for (int i = 0; i < 9; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}